package com.example.hw_demo.controller;

import com.example.hw_demo.service.AdsToiletSmartService;
import com.example.hw_demo.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/ads")
public class AdsController {
    @Autowired
    AdsToiletSmartService adsToiletSmartService;
    @GetMapping("/adsSelect")
    public Result select(){
       return new Result(200,"查询成功",adsToiletSmartService.list());
    }
}
